
package com.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 
 * 注册请求的数据传输对象
 */
@ApiModel(value = "RegisterRequest", description = "用户注册请求体")
public class RegisterRequest {

    @ApiModelProperty(value = "用户名（手机号）", example = "13800138001", required = true)
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度必须在2到20个字符之间")
    private String username;

    @ApiModelProperty(value = "密码", example = "123456", required = true)
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6到20个字符之间")
    private String password;

    @ApiModelProperty(value = "用户类型", example = "therapist", required = true, notes = "therapist/parent")
    @NotBlank(message = "用户类型不能为空")
    private String userType; // "therapist" 或 "parent"

    @ApiModelProperty(value = "姓名", example = "张三", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
}